package javabase.schoolwork.day6_14;

import java.io.PipedOutputStream;

/**
 * @author fance
 * @date 2018/6/14 22:51
 */
public class ThreadWrite extends Thread {
    private WriteData writeData;
    private PipedOutputStream out;

    public ThreadWrite(WriteData writeData, PipedOutputStream out) {
        this.writeData = writeData;
        this.out = out;
    }

    @Override
    public void run() {
        writeData.write(out);
    }
}
